//
// Created by lijia on 2021/4/25.
//

#ifndef PERISCOPE_SYSTEM_H
#define PERISCOPE_SYSTEM_H

#include <stdint.h>

#define MODULE_GYROSCOPE 1u
#define MODULE_BAROMETER 2u
#define MODULE_GPS 4u
#define MODULE_STORAGE 8u

extern void system_tick();

extern void system_mark_module_ready(uint8_t);

extern uint8_t system_is_module_ready(uint8_t);

extern uint8_t system_get_module_status();

extern void system_clear_module_status();

extern void system_set_mode(uint8_t);

#endif //PERISCOPE_SYSTEM_H
